package com.gupao.javavip.gof.observer;

import com.google.common.eventbus.EventBus;

public class EventManager {
    private static EventBus EVENT_BUS = new EventBus("MSG");

    private EventManager() {
    }

    public static void register(Object observer) {
        EVENT_BUS.register(observer);
    }

    public static void unregister(Object observer) {
        EVENT_BUS.unregister(observer);
    }

    public static void post(Object eventMsg) {
        EVENT_BUS.post(eventMsg);
    }
}
